<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ include file="/admin/commons/taglib.jsp"%>
<%
    String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>后台管理</title>
    <s:include value="/layouts/kindEditor.jsp"></s:include>
    <script type="text/javascript">
        $(function(){
            $("#kaoshi").addClass("active");
            $("#kaoshi").find("ul li").eq(2).addClass("active");
        })
    </script>
</head>
<body>
    <div class="admin">
        <div class="panel">
            <div class="panel-head"><strong>考试详情</strong></div>
            <div class="panel-body">
                <table class="table ">
                    <tr>
                        <td><strong>考试类型：</strong></td>
                        <td style="padding: 5px 20px 5px 5px;">${kaoshi.type==1?"首测":"周测"}</td></tr>
                    <tr>
                        <td style="width:10%;"><strong>考&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;生：</strong></td>
                        <td>${kaoshi.studentName}</td></tr>
                    <tr>
                        <td><strong>开始时间：</strong></td>
                        <td >${kaoshi.startTime}</td></tr>
                    <tr>
                        <td><strong>结束时间：</strong></td>
                        <td >${kaoshi.endTime}</td></tr>
                    <tr><td><strong>分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;数：</strong></td>
                        <td>${kaoshi.testCode}</td></tr>
                </table>
            </div>
        </div>
        <div class="panel" style="border-top: none">
            <s:iterator value="testDetails" status="s">
                <div class="panel-body">
                    <div style="padding: 10px 0;">${s.index+1}.<s:property value="tiMu.question"/>（<s:property value="stuAnswer"/>）
                        <s:if test="result==0">
                            （<span style="color: #00aa00">回答正确</span>）
                        </s:if>
                        <s:else>
                            （<span style="color: red">回答错误,正确答案是<s:property value="correctAnswer"/></span>）
                        </s:else>
                        </div>
                    <s:iterator value="tmOptions" var="tmo" status="tmos">
                        <div style="padding: 5px 10px;"><s:property value="#tmos.index==0?
                        'A':#tmos.index==1?'B':#tmos.index==2?'C':'D'"/>.<s:property value="#tmo.content"/></div>
                    </s:iterator>
                </div>
            </s:iterator>
        </div>
    </div>


</body>
</html>

